const app = getApp();
Component({
  options: {
    addGlobalClass: true,
  },
  data: {
    StatusBar: app.globalData.StatusBar,
    CustomBar: app.globalData.CustomBar,
    list: [{
        title: '如何使用',
        img: 'https://image.weilanwl.com/color2.0/plugin/sylb2244.jpg',
        url: '/use/use'
    },
      {
        title: '已登记名单',
        img: 'https://image.weilanwl.com/color2.0/plugin/wdh2236.jpg',
        url: '/component/list/list'
      },
      {
        title: '增加资料',
        img: 'https://image.weilanwl.com/color2.0/plugin/qpct2148.jpg',
        url: '/addlist/addlist'
      },
      {
        title: '历史登记资料',
        img: 'https://image.weilanwl.com/color2.0/plugin/qpczdh2307.jpg',
        url: '/history/history'
      },
      {
        title: '模版选择',
        img: 'https://image.weilanwl.com/color2.0/plugin/wdh2236.jpg',
        url: '/component/templates/templates'
    },
      
    ]
  },
  methods: {
    toChild(e) {
      wx.navigateTo({
        url: '/pages' + e.currentTarget.dataset.url
      })
    },
  }
});